<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE composition
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition 
template="/template.xhtml"
xmlns="http://www.w3.org/1999/xhtml" 
xmlns:a4j="http://richfaces.org/a4j" 
xmlns:c="http://java.sun.com/jstl/core" 
xmlns:f="http://java.sun.com/jsf/core" 
xmlns:h="http://java.sun.com/jsf/html" 
xmlns:rich="http://richfaces.org/rich" 
xmlns:ui="http://java.sun.com/jsf/facelets">

	<ui:define name="welcome">
	<h2>${welcome}</h2> 	
	</ui:define>
	<ui:define name="infoText"/>
	
	<ui:define name="body">
	
		<h:dataTable id="tableData" value="${r"#{list"}${backingBeanName}.data${r"}"}" var="item" >
			<#list entities as entity>
			<h:column>
				<f:facet name="header">
					<h:outputText value="${entity.name}" />
				</f:facet>
				 ${entity.render}
			</h:column>
			</#list>  
			
			<h:column>
				<f:facet name="header">
					<h:outputText value="Actions" />
				</f:facet>
				
			<h:commandLink action="${r"#{list"}${backingBeanName}.view${r"}"}" value="View"/>|
			<h:commandLink action="${r"#{list"}${backingBeanName}.edit${r"}"}" value="Edit"/>|
			<h:commandLink action="${r"#{list"}${backingBeanName}.delete${r"}"}" value="Delete"/>
			</h:column>
		</h:dataTable>

	</ui:define>
</ui:composition>